package com.heima.mapper;

import com.heima.pojo.dto.PartnerDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 合作商表 Mapper 接口
 * </p>
 *
 * @author 存折
 * @since 2024-10-17
 */
public interface PartnerMapper extends BaseMapper<PartnerDto> {


    @Select("select count(*) from tb_vending_machine where owner_id =#{id}")
    Integer selectNum(Integer id);
}
